package cate.game.role.res.leader;

import cate.game.role.Role;
import cate.game.role.RoleDependent;
import cate.game.role.res.leader.hallows.Hallows;
import easy.java.dev.note.NoteField;

public class RoleLeader extends RoleDependent {

    @NoteField(value = "圣器")
    public Hallows hallows;

    @Override
    public void initialize(Role role) {
        super.initialize(role);
        if (hallows == null) {
            hallows = new Hallows();
        }
        hallows.initialize(role);
    }

    @Override
    public void onEnter(){
        hallows.onEnter();
    }

    public void checkOpen(){
        hallows.checkOpen();
    }

    public void tick(){
        hallows.tick();
    }
}
